<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>修改密码</title>
<%@include file="/skins/jsp/loadCss.jsp"%>
</head>
<body>
	<%@include file="/skins/jsp/loadJquery.jsp"%>
	<h2 class="ch-box-container">修改密码</h2>
	<div class="ch-box-ok"><s:actionmessage /></div>
	<s:form id="cpw-form" action="changPassWord" namespace="/system" method="post">
		<p class="ch-form-row ch-form-required">
			<label for="passWord">原&nbsp;&nbsp;密&nbsp;&nbsp;码：<em>*</em></label>
			<s:password id="passWord" name="passWord"></s:password>
		</p>
		<p class="ch-form-row ch-form-required">
			<label for="newPassWord">新&nbsp;&nbsp;密&nbsp;&nbsp;码：<em>*</em></label>
			<s:password id="newPassWord" name="newPassWord"></s:password>
		</p>
		<p class="ch-form-row ch-form-required">
			<label for="newPassWord2">下一次输入密码：<em>*</em></label>
			<s:password id="newPassWord2" name="newPassWord2"></s:password>
		</p>
		<p class="ch-form-actions">
			<s:submit cssClass="ch-btn ch-btn-small" value="保存"></s:submit>
			<s:reset cssClass="ch-btn ch-btn-small" value="重置"></s:reset>
		</p>
	</s:form>
	<script type="text/javascript">
		ch.extend("validation").as("password", function (conf) {
			conf.condition = {
				name: "equals",
				expr: function(value) {return value === $("#newPassWord2").val() },
				message: conf.msg || conf.message,
				value: conf.value
			};
			return conf;
		});
		ch.extend("validation").as("password2", function (conf) {
			conf.condition = {
				name: "equals",
				expr: function(value) {return value === $("#newPassWord").val() },
				message: conf.msg || conf.message,
				value: conf.value
			};
			return conf;
		});
		var cpwform=$("#cpw-form").form(),pw = $("#passWord,#newPassWord,#newPassWord2").required("不能为空！"),pwl = $("#passWord,#newPassWord,#newPassWord2").minLength(6,"不能少于6个字符！"),eq=$("#newPassWord").password("新密码输入不一致！"),eq2=$("#newPassWord2").password2("新密码输入不一致！");
	</script>
</body>
</html>